
public class Bicycle {
	
	private String make;
	private String type;
	private int numberOfRiders ;
	private int numberOfSeats;
	private int numberOfWheels;
	private boolean forPropulsion;
	private int currentSpeed;
	
	Bicycle(String make, String type, int numberOfWheels ){
		
	}
	
	void bicycleInfo(){
		System.out.println("The make of this bike is " + make);
		System.out.println("This bike is of " + type);
		
	}
	
	int speedUp(int byHowMuch){
		currentSpeed = currentSpeed + byHowMuch;
		return currentSpeed;
	}
	
	void bicyclePurpose() {
		if(forPropulsion == false){
			System.out.println("This bike is stationary and can be used only for exercise");
		}else {
			System.out.println("This bike is not stationary and so can be used for any purpose");
		}
	}
	
	void ridersOnBicycle(){

		
		switch (numberOfRiders) {

		   
		case 1:
			 numberOfRiders = 1;
			
			break;
			
		case 2:
			numberOfRiders = 2;
			
			 break;
			 
		case 3:
			numberOfRiders = 3;
			 break;

		default:
			break;
		}
		System.out.println("The number of riders on this bike is " + numberOfRiders);
	}
	 
	void bicycleType(){
		
		if(forPropulsion == true && numberOfSeats == 2 )
			System.out.println("This bike is used for transportation and can carry 2 passengers");
	else {
		System.out.println("This bike is for exercising");
	}
	
}

	public String getMake() {
		return make;
	}



	public String getType() {
		return type;
	}



	public int getNumberOfRiders() {
		return numberOfRiders;
	}

	public void setNumberOfRiders(int numberOfRiders) {
		this.numberOfRiders = numberOfRiders;
	}

	public int getNumberOfSeats() {
		return numberOfSeats;
	}

	public void setNumberOfSeats(int numberOfSeats) {
		this.numberOfSeats = numberOfSeats;
	}

	public int getNumberOfWheels() {
		return numberOfWheels;
	}



	public boolean isForPropulsion() {
		return forPropulsion;
	}

	public void setForPropulsion(boolean forPropulsion) {
		this.forPropulsion = forPropulsion;
	}

	public int getCurrentSpeed() {
		return currentSpeed;
	}

	public void setCurrentSpeed(int currentSpeed) {
		this.currentSpeed = currentSpeed;
	}
}
